﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="login.aspx.cs" Inherits="skvote._Default"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">

    protected void Page_Load(object sender, EventArgs e)
    {

    }
</script>

<html>
<head>
<%skvote.function.header(Response);%>
<script language="javascript" type="text/javascript">
 function check(){
  if(form1.username.value==""){
   lbluser.innerHTML="用户名不能为空";
   return false;
  }
  if(form1.password.value==""){
   lblpass.innerHTML="密码不能为空";
   return false;
  }
  if(form1.yz.value==""){
   lblyz.innerHTML="验证码不能为空";
   return false;
  }
  return true;
 }
 window.onload=function(){
  form1.username.focus();
 } 
</script>
<title>【单考投票系统】后台管理</title>
</head>
<body>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" id="table1" style="border-collapse: collapse">
		<tr>
            	<td valign="top">
			    
				<table width="40%" border="1" align="center" cellpadding="5" cellspacing="1" bgcolor="#BFDFFF" id="table2" style="border-collapse: collapse; margin-top:50px;">
					<form id="form1" runat="server" onsubmit="return check();" action="login.aspx?act=login">
					<tr id="TableTitle2">
						<th colspan="2">【单考投票系统】后台管理登录</th>
					</tr>
					<tr>
						<td width="40%" align="right" bgcolor="#ECF5FF"><b>用户名：</b></td>
						<td bgcolor="#ECF5FF"><input type="text" name="username" id="username"/><label id="lbluser"></label></td>
					</tr>
					<tr>
						<td width="40%" align="right" bgcolor="#ECF5FF"><b>密&nbsp; 码：</b></td>
						<td bgcolor="#ECF5FF"><input type="password" name="password" id="password"/><label id="lblpass"></label></td>
					</tr>
					<tr>
						<td align="right" bgcolor="#ECF5FF"><b>验证码：</b></td>
						<td bgcolor="#ECF5FF"><input type="text" name="yz" size="8"/> 
						<img src="GetCode.aspx" onclick="this.src='GetCode.aspx'"/>&nbsp;<label id="lblyz" ></label></td>
					</tr>
					<tr>
					  <td height="30" colspan="2" align="center" bgcolor="#ECF5FF">					  
					      <asp:Button ID="login" runat="server" Text="登陆" CssClass="btn"
                              onclick="login_Click"/>
					  <input class="btn" type="reset" name="reset" value="取 消"/>
					  </td>
					</tr>	
					</form>				
			  </table>
			  
		  </td>
		</tr>
</table>
</body>
</html>